package com.zhou.bpm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* @Author: zhoujinchuan
* @Description: TODO (bpm_task_approver)
* @Date: 2023-10-25 16:48:28
*/
@Data
@TableName("bpm_task_approver")
@ApiModel("任务审批人表")
public class BpmTaskApprover implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("任务id")
    private Integer taskId;

    @ApiModelProperty("审批人账号")
    private Integer approvedCode;

    @ApiModelProperty("审批人账号名称")
    private String approvedName;

    @ApiModelProperty("任务状态：1-待处理,2-已通过,3-打回取消，4已作废(特殊手段)")
    @TableField(value = "status")
    private String status;

    @ApiModelProperty("审批意见")
    @TableField(value = "opinion")
    private String opinion;

    @ApiModelProperty("待办处理时间")
    private LocalDateTime updateTime;

    public BpmTaskApprover() {}
}